/**
 * Created by sjg on 17/9/25.
 */
var common = require('../../common');
var pool = require('../index');
var mysql = require('mysql');
var ItbBaseModel = require('./ItbBaseModel');


// Schema 结构
var ItbTmplSetRModel = function(obj){
    ItbBaseModel.call(this,obj);

    // 以下为表定义数据，需要的字段就填入
    //`ts_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '模版组id',
    //`title` varchar(50) NOT NULL DEFAULT '' COMMENT '编组名称',
    //`desc` varchar(200) DEFAULT '' COMMENT '用途简介',
    //`use` int(3) NOT NULL DEFAULT '0' COMMENT '用途: 1~99:通用; 101~199:app用; 201~299:网页端用; 301~399:微信小程序用...',
    //`thumb` text COMMENT '图示',
    //`order` int(3) NOT NULL DEFAULT '999' COMMENT '显示顺序',
    //`start_time` datetime DEFAULT NULL COMMENT '有效开始日期',
    //`end_time` datetime DEFAULT NULL COMMENT '有效截止日期',
    //`publish` int(1) NOT NULL DEFAULT '0' COMMENT '1发布, 0未发布',
    //`create_time` datetime NOT NULL,
    //`update_time` datetime NOT NULL,
    //`update_by` varchar(50) NOT NULL DEFAULT '',
    //`del_flg` int(1) NOT NULL DEFAULT '0',
};
ItbTmplSetRModel.prototype = new ItbBaseModel();

// 取得表名
ItbTmplSetRModel.prototype.getTableName = function(){
    return 'itb_tmpl_set_r';
};
// 取得查询语句中where 后面匹配主键的条件（需要各派生类进行重载）
ItbTmplSetRModel.prototype.getWhereConditionOfKeyEqual = function(){
    return 'ts_id='+this.ts_id;
};





module.exports = ItbTmplSetRModel;